﻿@model IEnumerable<PartyManagement.Models.Event>
@using PartyManagement.Models;
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_MyLayout.cshtml";
   
     Event even = new Event();
    string mess=  ViewBag.mess as string ;
    
}
<header>
    
    
      @*  @Scripts.Render("~/bundles/jqueryval")*@ 
        @Styles.Render("~/Content/bookEvent.css")

    
    <script src="~/Scripts/jquery-ui-1.8.24.js"></script>
</header>
<h2>Events</h2>

<table>
    <tr>
       
        <th>
            @Html.DisplayNameFor(model => model.eventName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.dateEvent)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.endDateBook)
        </th>
      
   
           
    </tr>

@foreach (var item in Model) {
 
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.eventName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dateEvent)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.endDateBook)
        </td>
        <td>
             @Html.Hidden("userID",Session["userID"])
        </td>
        <td>
     @*       @Html.ActionLink("Edit", "Edit", new { id=item.eventID }) |
         
            @Html.ActionLink("Delete", "Delete", new { id=item.eventID }) |*@

      
          


        </td>
    </tr>
    
}

</table>


<div>
    @Html.ActionLink("Back to List", "Index")
</div>

  